import { BASE } from './api'
import { METHOD, request } from '@/utils/request'

//考核事件列表
export async function getEvent(params) {
    return request(`${BASE}/event/page`, METHOD.POST, params)
}
//新增考核事件
export async function getSave(params) {
    return request(`${BASE}/event/save`, METHOD.POST, params)
}


//【部门】 考核类型
export async function basicQuery(params) {
    return request(`${BASE}/basic/type/query`, METHOD.POST, params)
}
//【部门】 列表查询
export async function departmentQuery(params) {
    return request(`${BASE}/department/query`, METHOD.POST, params)
}

//【支部】 列表查询
export async function branchQuery(params) {
    return request(`${BASE}/branch/query`, METHOD.POST, params)
}

//【【考核条例】列表查询
export async function regulationQuery(params) {
    return request(`${BASE}/regulation/query`, METHOD.POST, params)
}

//【【考核条例】列表查询
export async function regulationPage(params) {
    return request(`${BASE}/regulation/page`, METHOD.POST, params)
}

//【【考核条例】列表查询
export async function regulationSave(params) {
    return request(`${BASE}/regulation/save`, METHOD.POST, params)
}

export async function collectQuery(params) {
    return request(`${BASE}/statistics/query`, METHOD.POST, params)
}

export async function regulationUpdate(params) {
    return request(`${BASE}/regulation/update`, METHOD.POST, params)
}

export async function regulationDel(params) {
    return request(`${BASE}/regulation/del`, METHOD.POST, params)
}

export default {regulationDel, regulationUpdate,getEvent ,getSave,departmentQuery,branchQuery,regulationQuery,regulationPage,regulationSave,basicQuery,collectQuery}